package ienum;

/**
 * @author cuihao
 * 枚举是有序的
 * http://blog.csdn.net/u014527058/article/details/52751488
 * @date 2017/12/19
 */
public enum TypeUser {

    ENGINNER(1, "工程师", "私企"),
    TEACHER(2, "教师", "事业"),
    LAWYER(3, "律师", "外企");

    int num;
    String value;
    String company;

    TypeUser(int num, String value, String company) {
        this.num = num;
        this.value = value;
        this.company = company;
    }

    public int getNum() {
        return num;
    }

    public String getValue() {
        return value;
    }

    public String getCompany() {
        return company;
    }
}